package com.mic.yzzn.plc.common.ins.datastructure;

import com.mic.yzzn.plc.common.instructions.basic.PLCRequestInstruction;

/**
 * 用于将相应指令转换成PLCData的辅助类
 */
public class PLCInstructionTuple
{
	/** 请求指令 */
	public PLCRequestInstruction requestInstruction;
	/** 响应指令的字符串 */
	public String responseString;
	/** 响应的状态码(PLCData级别) */
	public int responseState;
	
	@Override
	public String toString()
	{
		StringBuffer buffer = new StringBuffer(requestInstruction.toString().subSequence(0, requestInstruction.toString().length() - 1));
		buffer.append(" : ");
		buffer.append(responseString.substring(0, responseString.length() - 1));
		return buffer.toString();
	}
}